import request from '@/utils/request'

// 注册接口
export const register = (data) => {
  return request.post('/user/registered', data)
}

// 登录接口
export const login = (data) => {
  return request.post('/user/login', data)
}

// 退出接口
export const logout = () => {
  return request.post('/admin/logout')
}
// 获取用户信息
export const getuserInfo = () => {
  return request.get('/user')
}
